#include <nice2d/actions/finitetimeaction.h>

IMPLEMENT_OBJECT(FiniteTimeAction,Action)

class FiniteTimeActionData
{
public:
    float duration = 3.0f;
};

FiniteTimeAction::FiniteTimeAction(float duration):
    data(new FiniteTimeActionData())
{
    data->duration = duration;
}

FiniteTimeAction::~FiniteTimeAction()
{
}

float FiniteTimeAction::getDuration() const
{
    return data->duration;
}
